<form class="layui-form layui-form-pane" action="/education/admin/product/save" id="form1">
    <input type="hidden" name="id">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">名称</label>
            <div class="layui-input-inline">
                <input type="text" name="product_name" required jq-verify="required" class="layui-input ">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">编号</label>
            <div class="layui-input-inline">
                <input type="text" name="product_no" required jq-verify="required" class="layui-input ">
            </div>
        </div>
    </div>


    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">副标题</label>
            <div class="layui-input-inline">
                <input type="text" name="title" required jq-verify="required" class="layui-input ">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">标签</label>
            <div class="layui-input-inline">
                <select name="tag_id" id="tagId">
                    <option value="">请选择</option>
                </select>
            </div>
        </div>
    </div>


    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">市场价(元)</label>
            <div class="layui-input-inline">
                <input type="number" name="market_price" required jq-verify="required" class="layui-input ">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">会员价(元)</label>
            <div class="layui-input-inline">
                <input type="number" name="vip_price" required jq-verify="required" class="layui-input ">
            </div>
        </div>

    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">销售价(元)</label>
            <div class="layui-input-inline">
                <input type="number" name="price" required jq-verify="required" class="layui-input ">
            </div>
        </div>


    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">产地</label>
            <div class="layui-input-inline">
                <input type="text" name="place_origin" required jq-verify="required" class="layui-input ">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">规格描述</label>
            <div class="layui-input-inline">
                <input type="text" name="spec_desc" class="layui-input ">
            </div>
        </div>
        <!--<div class="layui-inline">
            <label class="layui-form-label">保质期</label>
            <div class="layui-input-inline">
                <input type="text" name="valid_date" required jq-verify="required"  class="layui-input ">
            </div>
        </div>-->
    </div>


    <!--<div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">规格</label>
            <div class="layui-input-inline">
                <input type="number" name="spec" required jq-verify="required" class="layui-input ">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">规格单位</label>
            <div class="layui-input-inline">
                <input type="text" name="spec_unit" required jq-verify="required" class="layui-input ">
            </div>
        </div>
    </div>-->



    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">状态</label>
            <div class="layui-inline">
                <select name="status" id="status" lay-filter="statusChange">
                    <option value="1">上架</option>
                    <option value="2">预售</option>
                    <option value="0">下架</option>
                </select>
            </div>
        </div>

        <div class="layui-inline" id="preTime1" style="display:none">
            <label class="layui-form-label">开始时间</label>
            <div class="layui-input-inline">
                <input class="layui-input" name="pre_time1" placeholder=""
                       onclick="layui.laydate({elem: this, istime:true, format:'YYYY-MM-DD hh:mm:ss'})">
            </div>
        </div>
        <div class="layui-inline" id="preTime2" style="display:none">
            <label class="layui-form-label">结束时间</label>
            <div class="layui-input-inline">
                <input class="layui-input" name="pre_time2" placeholder=""
                       onclick="layui.laydate({elem: this, istime:true, format:'YYYY-MM-DD hh:mm:ss'})">
            </div>
        </div>
        <!--<div class="layui-inline">
            <label class="layui-form-label">运费模板</label>
            <div class="layui-input-inline">
                <select name="freight_template_id" id="templateId" required jq-verify="required">
                    <option/>
                </select>
            </div>
        </div>-->
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">商品标识</label>
        <div class="layui-input-block" id="markCode">
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">销量</label>
            <div class="layui-input-inline">
                <input type="text" name="sales" class="layui-input" value="0" required jq-verify="required">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label" style="width:200px">封面图片</label>
        <div class="layui-input-block">
            <input type="file" name="file" class="layui-upload-file">
            <input type="hidden" name="cover_image">
        </div>
        <div class="layui-input-inline"><div class="imgbox" style="width: 800px;"></div></div>
    </div>

    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">订单验收标准提示</label>
        <div class="layui-input-block">
            <textarea name="tips" class="layui-textarea"></textarea>
        </div>
    </div>

    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">简介</label>
        <div class="layui-input-block">
            <script id="container" name="description" type="text/plain"></script>
            <!--<textarea name="description" class="layui-textarea"></textarea>-->
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" jq-submit jq-filter="submit">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>